PL-SQL block the result of the first query as a parameter for the second query

join shbcf.ru